package com.ilvyou.data.lcs;

import java.sql.Timestamp;

/**
 * Created by Administrator on 2017/2/13.
 */
public class SetupBruleEntity {
    private Short versionid;
    private Integer ruleid;
    private String rulecode;
    private Integer levelid;
    private String levelcode;
    private Short enableflag;
    private Short firstflag;
    private Short canremove;
    private Short removedays;
    private String remark;
    private Timestamp createdon;
    private String createdby;
    private String createdname;
    private String createdip;

    public Short getVersionid() {
        return versionid;
    }

    public void setVersionid(Short versionid) {
        this.versionid = versionid;
    }

    public Integer getRuleid() {
        return ruleid;
    }

    public void setRuleid(Integer ruleid) {
        this.ruleid = ruleid;
    }

    public String getRulecode() {
        return rulecode;
    }

    public void setRulecode(String rulecode) {
        this.rulecode = rulecode;
    }

    public Integer getLevelid() {
        return levelid;
    }

    public void setLevelid(Integer levelid) {
        this.levelid = levelid;
    }

    public String getLevelcode() {
        return levelcode;
    }

    public void setLevelcode(String levelcode) {
        this.levelcode = levelcode;
    }

    public Short getEnableflag() {
        return enableflag;
    }

    public void setEnableflag(Short enableflag) {
        this.enableflag = enableflag;
    }

    public Short getFirstflag() {
        return firstflag;
    }

    public void setFirstflag(Short firstflag) {
        this.firstflag = firstflag;
    }

    public Short getCanremove() {
        return canremove;
    }

    public void setCanremove(Short canremove) {
        this.canremove = canremove;
    }

    public Short getRemovedays() {
        return removedays;
    }

    public void setRemovedays(Short removedays) {
        this.removedays = removedays;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Timestamp getCreatedon() {
        return createdon;
    }

    public void setCreatedon(Timestamp createdon) {
        this.createdon = createdon;
    }

    public String getCreatedby() {
        return createdby;
    }

    public void setCreatedby(String createdby) {
        this.createdby = createdby;
    }

    public String getCreatedname() {
        return createdname;
    }

    public void setCreatedname(String createdname) {
        this.createdname = createdname;
    }

    public String getCreatedip() {
        return createdip;
    }

    public void setCreatedip(String createdip) {
        this.createdip = createdip;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        SetupBruleEntity that = (SetupBruleEntity) o;

        if (versionid != null ? !versionid.equals(that.versionid) : that.versionid != null) return false;
        if (ruleid != null ? !ruleid.equals(that.ruleid) : that.ruleid != null) return false;
        if (rulecode != null ? !rulecode.equals(that.rulecode) : that.rulecode != null) return false;
        if (levelid != null ? !levelid.equals(that.levelid) : that.levelid != null) return false;
        if (levelcode != null ? !levelcode.equals(that.levelcode) : that.levelcode != null) return false;
        if (enableflag != null ? !enableflag.equals(that.enableflag) : that.enableflag != null) return false;
        if (firstflag != null ? !firstflag.equals(that.firstflag) : that.firstflag != null) return false;
        if (canremove != null ? !canremove.equals(that.canremove) : that.canremove != null) return false;
        if (removedays != null ? !removedays.equals(that.removedays) : that.removedays != null) return false;
        if (remark != null ? !remark.equals(that.remark) : that.remark != null) return false;
        if (createdon != null ? !createdon.equals(that.createdon) : that.createdon != null) return false;
        if (createdby != null ? !createdby.equals(that.createdby) : that.createdby != null) return false;
        if (createdname != null ? !createdname.equals(that.createdname) : that.createdname != null) return false;
        if (createdip != null ? !createdip.equals(that.createdip) : that.createdip != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = versionid != null ? versionid.hashCode() : 0;
        result = 31 * result + (ruleid != null ? ruleid.hashCode() : 0);
        result = 31 * result + (rulecode != null ? rulecode.hashCode() : 0);
        result = 31 * result + (levelid != null ? levelid.hashCode() : 0);
        result = 31 * result + (levelcode != null ? levelcode.hashCode() : 0);
        result = 31 * result + (enableflag != null ? enableflag.hashCode() : 0);
        result = 31 * result + (firstflag != null ? firstflag.hashCode() : 0);
        result = 31 * result + (canremove != null ? canremove.hashCode() : 0);
        result = 31 * result + (removedays != null ? removedays.hashCode() : 0);
        result = 31 * result + (remark != null ? remark.hashCode() : 0);
        result = 31 * result + (createdon != null ? createdon.hashCode() : 0);
        result = 31 * result + (createdby != null ? createdby.hashCode() : 0);
        result = 31 * result + (createdname != null ? createdname.hashCode() : 0);
        result = 31 * result + (createdip != null ? createdip.hashCode() : 0);
        return result;
    }
}
